<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script language=javascript>
document.write("<link rel=stylesheet type=text/css href=../../theme/"+parent.tTheme+"/em.css>")
</script>
</head>
<body onload=load()></body>
<script src=../../w/pf.js language=javascript></script>
<script language=javascript>
function load(){

function C(t){return document.createElement(t)}
function A(o,t){o.insertBefore(t,null)}

F=emfacs
Q=parent
IE=navigator.appName.indexOf("Mi")!=-1

Sc=Q.Sc
Bc='white'
SBc=Q.Bc

var cT,cP,MC,MM,PS,PP,MHR,i,c,k
CC=F[0]
CD=F[1]
I=parent.editMenus.E.firstChild
W=9
H=6
P=W*H

if(!IE)I.parentNode.style.width=34*W+4
I.style.width=34*W+4
A(document.body,MC=C("div"))
MC.style.width=34*W+4

A(MC,MHR=IE?new Image():C("div"))
MHR.className="emHr"
A(MC,MM=C("div"))
MM.className="emTS"
MM.innerHTML=(F.length>7?"<a href=javascript:; id=tta>><a href=javascript:; id=tta>&lt;</a>":"")+"<span>"
A(MC,CS=C("div"))
CS.className="emCS"
CS.style.height=H*34+(IE?4:0)
A(MC,PS=C("div"))
PS.className="emPS"

TS=MM.lastChild

if(F.length>7){
i=MM.firstChild
i.onclick=function(){
if(F.length-3>(t=TS.lastChild.p)){
cclass(t=t+2)
CC=F[t]
CD=F[++t]
cicons(0)
cpages(0)
}
return false
}
i.nextSibling.onclick=function(){
var t
if(t=TS.firstChild.p){
cclass(t=t-6)
CC=F[t]
CD=F[++t]
cpages(0)
cicons(0)
}
return false
}
}

function cclass(n){
var t,i,l,n
TS.innerHTML=""
for(i=n,l=F.length-1,l=(n+6<l)?n+6:l;i<l;i+=2){
A(TS,t=C("a"))
t.href="javascript:;"
t.innerHTML=F[i][1]
t.p=i
t.onclick=function(){
if(cT!=this){
cT.style.backgroundColor=Bc
cT=this
CC=F[this.p]
CD=F[this.p+1]
cpages(0)
cicons(0)
moveHr()
}
return false
}
}
cT=TS.firstChild
moveHr()
}cclass(0)

function moveHr(){
cT.style.backgroundColor=SBc
with(MHR.style){
width=cT.offsetWidth-2
top=cT.offsetHeight+cT.offsetTop-2
left=cT.offsetLeft+1
}
}setTimeout(moveHr,500)

function cpages(n){
PS.innerHTML=""
var i,k,l,t
for(i=0,l=Math.ceil((CD.length-1)/P);i<l;i++){
A(PS,t=C("a"))
if(n==i){t.style.backgroundColor=SBc;cP=t}
t.href="javascript:;"
t.innerHTML=i+1
t.onclick=function(){
if(cP!=this){
cP.style.backgroundColor=Bc
cP=this
cP.style.backgroundColor=SBc
cicons(this.innerHTML-1)
}
return false
}
}
}cpages(0)

function cicons(p){
CS.innerHTML=""
for(i=P*p,l=CD.length-1,l=(i+P<l)?i+P:l;i<l;i++){
A(CS,t=new Image())
t.src="../../icons/em/"+CC[0]+"/"+CD[i][0]+".gif"
t.title=CD[i][1]
t.d=i
t.onclick=function(){
Q.EW.focus()
Q.insImg("../icons/em/"+CC[0]+"/"+CD[this.d][0]+".gif")
}
t.onmouseover=function(){this.style.borderColor=Sc}
t.onmouseout=function(){this.style.borderColor=""}
}
I.style.height=MC.clientHeight+(IE?-1:1)
}cicons(0)
}
</script>
</html>